#include "songitem.h"
#include "ui_songitem.h"

songItem::songItem(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::songItem)
{
    ui->setupUi(this);

    setStyleSheet(R"(
        QLabel{
            font:18px "宋体";
            color:black;
            background-color:rgba(0,0,0,0);
        }
        QLabel#label{
            font:15px;
            color:rgba(0,0,0,150);
        }

    )");
    ui->durationLab->setFixedWidth(60);
    ui->durationLab->setAlignment(Qt::AlignVCenter|Qt::AlignRight);
    ui->artistsNameLab->setFixedWidth(150);
    ui->songNameLab->setFixedWidth(200);
    ui->label->setFixedWidth(30);
}

songItem::~songItem()
{
    delete ui;
}

QLabel *songItem::getSongLabel()
{
    return ui->songNameLab;

}

QLabel *songItem::getNameLabel()
{
    return ui->artistsNameLab;

}

QLabel *songItem::getDurationLabel()
{
    return ui->durationLab;

}

QLabel *songItem::getLablel()
{
    return ui->label;

}

QLabel *songItem::getvip()
{
    return ui->vip_lb;
}


void songItem::resizeEvent(QResizeEvent *event)
{

}

void songItem::paintEvent(QPaintEvent *event)
{

}
